package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 数据模板详情
 *
 * @author pig
 * @date 2023-09-26 14:57:17
 */
@Data
@TableName("data_template_details")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "数据模板详情")
public class DataTemplateDetailsEntity extends Model<DataTemplateDetailsEntity> {


	/**
	 * ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "ID")
	private Long id;

	/**
	 * 数据模板id
	 */
	@Schema(description = "数据模板id")
	private Long dataTemplateId;

	/**
	 * 检测因子id
	 */
	@Schema(description = "检测因子id")
	private Long factorId;

	/**
	 * 检测因子名称
	 */
	@Schema(description = "检测因子名称")
	private String factorName;

	/**
	 * 检测因子
	 */
	@Schema(description = "检测因子编码")
	private String factorCode;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * delFlag
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "delFlag")
	private String delFlag;

	/**
	 * 租户ID
	 */
	@Schema(description = "租户ID")
	private Long tenantId;
}